package vg.services.plugin_manager.event_and_request.event;

import vg.services.graph_view_manager.interfaces.tab.ATab;


/**
 * This event report decoders and all her components
 * about opening of new tab.
 * @author tzolotuhin
 */
public class UIEventOpenNewTab extends AUIEvent {
	private final ATab tab; // new tab
	private final int tabId; // id of tab
	/**
	 * Constructor.
	 * @param tabId - id of tab.
	 * @param tab - tab.
	 */
	public UIEventOpenNewTab(int tabId, ATab tab) {
		super(EUIEventType.DEF_OPEN_NEW_TAB);
		this.tab = tab;
		this.tabId = tabId;
	}
	
	public ATab getTab() {
		return tab;
	}

	public int getTabId() {
		return tabId;
	}
}
